﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AirLinq.Providers.Sql {
	public class SqlSubquery : SqlSource{
		private readonly SqlQuerySpecification _query;
		public SqlSubquery(SqlQuerySpecification query) {
			if (query == null) {
				throw new ArgumentNullException("query");
			}
			_query = query;
		}
		public SqlQuerySpecification Query {
			get {
				return _query;
			}
		}
		public override SqlNodeType NodeType {
			get {
				return SqlNodeType.Subquery;
			}
		}
	}
}
